import request from '@/utils/request'

// excel导出
export function exportExcel(url) {
  return request({
    url: url,
    method: 'get',
    responseType: 'blob',
  })
}

// excel导入
export function importExcel(url, file) {
  return request({
    url: url,
    method: 'post',
    data: file,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}
